﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
        xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
        xmlns:properties1="clr-namespace:IMPressive.Properties"
        x:Class="IMPressive.MainWindow"
        Title="IMPressive" Height="489" Width="686" SnapsToDevicePixels="True" ResizeMode="CanMinimize" Icon="icon.ico" MouseWheel="Window_MouseWheel" Loaded="Window_Loaded">
    <!--<Window.Resources>
        <RoutedUICommand x:Key="7" Text="7" />
        <RoutedUICommand x:Key="8" Text="8" />
        <RoutedUICommand x:Key="9" Text="9" />
        <RoutedUICommand x:Key="4" Text="4" />
        <RoutedUICommand x:Key="5" Text="5" />
        <RoutedUICommand x:Key="6" Text="6" />
        <RoutedUICommand x:Key="1" Text="1" />
        <RoutedUICommand x:Key="2" Text="2" />
        <RoutedUICommand x:Key="3" Text="3" />
        <RoutedUICommand x:Key="0" Text="0" />
        <RoutedUICommand x:Key="Div" Text="Divide" />
        <RoutedUICommand x:Key="Mul" Text="Multiply" />
        <RoutedUICommand x:Key="Add" Text="Add" />
        <RoutedUICommand x:Key="Sub" Text="Subtract" />
        <RoutedUICommand x:Key="Eqa" Text="Equals" />
        <RoutedUICommand x:Key="Rem" Text="Backspace" />
    </Window.Resources>
    <Window.CommandBindings>
        <CommandBinding Command="{StaticResource 7}" Executed="btn7_Click"/>
        <CommandBinding Command="{StaticResource 8}" Executed="btn8_Click"/>
        <CommandBinding Command="{StaticResource 9}" Executed="btn9_Click"/>
        <CommandBinding Command="{StaticResource 4}" Executed="btn4_Click"/>
        <CommandBinding Command="{StaticResource 5}" Executed="btn5_Click"/>
        <CommandBinding Command="{StaticResource 6}" Executed="btn6_Click"/>
        <CommandBinding Command="{StaticResource 1}" Executed="btn1_Click"/>
        <CommandBinding Command="{StaticResource 2}" Executed="btn2_Click"/>
        <CommandBinding Command="{StaticResource 3}" Executed="btn3_Click"/>
        <CommandBinding Command="{StaticResource 0}" Executed="btn0_Click"/>
        <CommandBinding Command="{StaticResource Div}" Executed="btnDiv_Click"/>
        <CommandBinding Command="{StaticResource Mul}" Executed="btnTimes_Click"/>
        <CommandBinding Command="{StaticResource Add}" Executed="btnPlus_Click"/>
        <CommandBinding Command="{StaticResource Sub}" Executed="btnMinus_Click"/>
        <CommandBinding Command="{StaticResource Eqa}" Executed="btnEquals_Click"/>
        <CommandBinding Command="{StaticResource Rem}" Executed="Rem"/>
    </Window.CommandBindings>

    <Window.InputBindings>
        <KeyBinding Key="NumPad7" Command="{StaticResource 7}" />
        <KeyBinding Key="NumPad8" Command="{StaticResource 8}" />
        <KeyBinding Key="NumPad9" Command="{StaticResource 9}" />
        <KeyBinding Key="NumPad4" Command="{StaticResource 4}" />
        <KeyBinding Key="NumPad5" Command="{StaticResource 5}" />
        <KeyBinding Key="NumPad6" Command="{StaticResource 6}" />
        <KeyBinding Key="NumPad1" Command="{StaticResource 1}" />
        <KeyBinding Key="NumPad2" Command="{StaticResource 2}" />
        <KeyBinding Key="NumPad3" Command="{StaticResource 3}" />
        <KeyBinding Key="NumPad0" Command="{StaticResource 0}" />
        <KeyBinding Key="Divide" Command="{StaticResource Div}" />
        <KeyBinding Key="Multiply" Command="{StaticResource Mul}" />
        <KeyBinding Key="Add" Command="{StaticResource Add}" />
        <KeyBinding Key="Subtract" Command="{StaticResource Sub}" />
        <KeyBinding Key="Enter" Command="{StaticResource Eqa}" />
        <KeyBinding Key="Back" Command="{StaticResource Rem}" />
    </Window.InputBindings>-->
    <Grid>
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFEDF4FC" Offset="0"/>
                <GradientStop Color="#FFD9E4F1" Offset="1"/>
            </LinearGradientBrush>
        </Grid.Background>
        <Border BorderThickness="1" Margin="24,42,24,282" Padding="5" BorderBrush="#FF8696AA" CornerRadius="2" Height="26" Background="White" Width="614" SnapsToDevicePixels="False" HorizontalAlignment="Center" VerticalAlignment="Top">
            <controls:AutoCompleteBox x:Name="txtOperation" HorizontalAlignment="Center" Height="24" Margin="-4" VerticalAlignment="Center" Width="614" ItemsSource="{Binding Funcs}" FontFamily="Cambria Math" FontSize="18" Foreground="#FF333333" Padding="0,2,3,0" BorderBrush="{x:Null}" BorderThickness="0" KeyUp="txtOperation_KeyUp" HorizontalContentAlignment="Right" TextChanged="txtOperation_TextChanged" SelectionChanged="txtOperation_SelectionChanged" DropDownClosed="txtOperation_DropDownClosed">
                <controls:AutoCompleteBox.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFE5EEFB" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                    </LinearGradientBrush>
                </controls:AutoCompleteBox.Background>
            </controls:AutoCompleteBox>
        </Border>
        <Border BorderThickness="1" Margin="24,82,24,216" Padding="5" BorderBrush="#FF8696AA" CornerRadius="2" Background="White" Height="52" Width="614" SnapsToDevicePixels="False" MinWidth="574" MinHeight="52" HorizontalAlignment="Center" VerticalAlignment="Top">
            <TextBox x:Name="txtResult" HorizontalAlignment="Center" Height="50" Margin="-4" TextWrapping="Wrap" Text="0" VerticalAlignment="Center" Width="614" BorderBrush="{x:Null}" BorderThickness="1" FontSize="46" FontFamily="Cambria Math" HorizontalContentAlignment="Right" IsReadOnly="True" >
                <TextBox.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFE5EEFB" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                    </LinearGradientBrush>
                </TextBox.Background>
            </TextBox>
        </Border>
        <Button x:Name="btn7" Style="{StaticResource LightButton}" Content="7" HorizontalAlignment="Left" Margin="33,234,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" Click="btn7_Click" HorizontalContentAlignment="Center" Foreground="#FF1E395B" />
        <Button x:Name="btn8" Style="{StaticResource LightButton}" Content="8" HorizontalAlignment="Left" Margin="79,234,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" Click="btn8_Click" Foreground="#FF1E395B" />
        <Button x:Name="btn9" Style="{StaticResource LightButton}" Content="9" HorizontalAlignment="Left" Margin="125,234,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" Click="btn9_Click" Foreground="#FF1E395B" />
        <Button x:Name="btn4" Style="{StaticResource LightButton}" Content="4" HorizontalAlignment="Left" Margin="33,280,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" Click="btn4_Click" Foreground="#FF1E395B" />
        <Button x:Name="btn5" Style="{StaticResource LightButton}" Content="5" HorizontalAlignment="Left" Margin="79,280,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" Click="btn5_Click" Foreground="#FF1E395B" />
        <Button x:Name="btn6" Style="{StaticResource LightButton}" Content="6" HorizontalAlignment="Left" Margin="125,280,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" Click="btn6_Click" Foreground="#FF1E395B" />
        <Button x:Name="btn1" Style="{StaticResource LightButton}" Content="1" HorizontalAlignment="Left" Margin="33,327,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" Click="btn1_Click" Foreground="#FF1E395B" />
        <Button x:Name="btn2" Style="{StaticResource LightButton}" Content="2" HorizontalAlignment="Left" Margin="79,327,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" Click="btn2_Click" Foreground="#FF1E395B" />
        <Button x:Name="btn3" Style="{StaticResource LightButton}" Content="3" HorizontalAlignment="Left" Margin="125,327,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" Click="btn3_Click" Foreground="#FF1E395B" />
        <Button x:Name="btn0" Style="{StaticResource LightButton}" Content="0" HorizontalAlignment="Left" Margin="33,373,0,0" VerticalAlignment="Top" Width="86" Height="40" FontSize="18" BorderBrush="#FF8696AA" Click="btn0_Click" Foreground="#FF1E395B" />
        <Button x:Name="btnComma" Style="{StaticResource LightButton}" Content="," HorizontalAlignment="Left" Margin="125,373,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" Click="btnComma_Click" Foreground="#FF1E395B" />
        <Button x:Name="btnEquals" Style="{StaticResource NormalButton}" Content="=" HorizontalAlignment="Left" Margin="217,327,0,0" VerticalAlignment="Top" Width="40" Height="86" FontSize="24" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Padding="1,1,1,6" Click="btnEquals_Click" BorderThickness="1" BorderBrush="#FF8696AA" Foreground="#FF1E395B" />
        <Button x:Name="btnTimes" Style="{StaticResource NormalButton}" Content="×" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="171,280,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" VerticalContentAlignment="Top" Padding="1,6,1,1" Click="btnTimes_Click" Foreground="#FF1E395B" />
        <Button x:Name="btnMinus" Style="{StaticResource NormalButton}" Content="-" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="171,327,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" Click="btnMinus_Click" Foreground="#FF1E395B" />
        <Button x:Name="btnDiv" Style="{StaticResource NormalButton}" Content="÷" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="171,234,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" VerticalContentAlignment="Top" Padding="1,6,1,1" Click="btnDiv_Click" Foreground="#FF1E395B" />
        <Button x:Name="btnPlus" Style="{StaticResource NormalButton}" Content="+" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="171,373,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Padding="1,1,1,9" BorderBrush="#FF8696AA" Click="btnPlus_Click" Foreground="#FF1E395B" />
        <Button x:Name="btnSech" Style="{StaticResource NormalButton}" Content="sech" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="290,373,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" HorizontalContentAlignment="Center" FontSize="16" Foreground="#FF1E395B" />
        <Button x:Name="btnCsch" Style="{StaticResource NormalButton}" Content="csch" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="345,373,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" />
        <Button x:Name="btnCoth" Style="{StaticResource NormalButton}" Content="coth" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="402,373,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" />
        <Button x:Name="btnCosh" Style="{StaticResource NormalButton}" Content="cosh" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="290,280,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" />
        <Button x:Name="btnSinh" Style="{StaticResource NormalButton}" Content="sinh" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="345,280,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" />
        <Button x:Name="btnTanh" Style="{StaticResource NormalButton}" Content="tanh" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="402,280,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" />
        <Button x:Name="btnSec" Style="{StaticResource NormalButton}" Content="sec" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="290,327,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" />
        <Button x:Name="btnCsc" Style="{StaticResource NormalButton}" Content="csc" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="345,327,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" />
        <Button x:Name="btnCot" Style="{StaticResource NormalButton}" Content="cot" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="402,327,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" />
        <Button x:Name="btnCos" Style="{StaticResource NormalButton}" Content="cos" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="290,234,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" />
        <Button x:Name="btnSin" Style="{StaticResource NormalButton}" Content="sin" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="346,234,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" />
        <Button x:Name="btnTan" Style="{StaticResource NormalButton}" Content="tan" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="402,234,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" />
        <Button x:Name="btnInverse" Style="{StaticResource NormalButton}" Content="1/x" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="217,280,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" VerticalContentAlignment="Top" Padding="1,6,1,1" FontFamily="Times New Roman" FontStyle="Italic" Click="btnInverse_Click" Foreground="#FF1E395B" />
        <Button x:Name="btnSqrt" Style="{StaticResource NormalButton}" Content="√" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="217,234,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" VerticalContentAlignment="Top" Padding="1,6,1,1" Click="btnSqrt_Click" Foreground="#FF1E395B" />
        <Button x:Name="btnClear" Style="{StaticResource NormalButton}" Content="C" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="33,188,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" VerticalContentAlignment="Top" Padding="1,6,1,1" Click="btnClear_Click" Foreground="#FF1E395B" />
        <Button x:Name="btnLP" Style="{StaticResource NormalButton}" Content="(" HorizontalAlignment="Left" Margin="125,188,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" VerticalContentAlignment="Top" Padding="1,6,1,1" Click="btnLP_Click" Foreground="#FF1E395B" />
        <Button x:Name="btnDiv_Copy" Style="{StaticResource NormalButton}" Content="÷" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="171,234,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" VerticalContentAlignment="Top" Padding="1,6,1,1" Click="btnDiv_Click" Foreground="#FF1E395B" />
        <Button x:Name="btnRP" Style="{StaticResource NormalButton}" Content=")" HorizontalAlignment="Left" Margin="171,188,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" VerticalContentAlignment="Top" Padding="1,6,1,1" Click="btnRP_Click" Foreground="#FF1E395B" />
        <Button x:Name="btnSqr" Style="{StaticResource NormalButton}" Content="x²" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="290,150,0,0" VerticalAlignment="Top" Width="50" Height="32" FontSize="18" BorderBrush="#FF8696AA" Click="btnSqr_Click" FontStyle="Italic" FontFamily="Times New Roman" Background="{x:Null}" Foreground="#FF1E395B" />
        <Button x:Name="btnCube" Style="{StaticResource NormalButton}" Content="x³" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="346,150,0,0" VerticalAlignment="Top" Width="49" Height="32" FontSize="18" BorderBrush="#FF8696AA" Click="btnCube_Click" FontStyle="Italic" FontFamily="Times New Roman" Background="{x:Null}" Foreground="#FF1E395B" />
        <Button x:Name="btnPow" Style="{StaticResource NormalButton}" Content="xⁿ" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="402,150,0,0" VerticalAlignment="Top" Width="50" Height="32" FontSize="18" BorderBrush="#FF8696AA" FontFamily="Times New Roman" FontStyle="Italic" Click="btnPow_Click" Background="{x:Null}" Foreground="#FF1E395B" />
        <Button x:Name="btnFact" Style="{StaticResource NormalButton}" Content="n!" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="217,188,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" VerticalContentAlignment="Top" Padding="1,6,1,1" Click="btnFact_Click" Foreground="#FF1E395B" />
        <Button x:Name="btnMC" Style="{StaticResource NormalButton}" Content="MC" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="33,150,0,0" VerticalAlignment="Top" Width="40" Height="32" FontSize="14" BorderBrush="#FF8696AA" VerticalContentAlignment="Top" Padding="1,6,1,1" Background="{x:Null}" Click="btnMC_Click" Foreground="#FF1E395B" />
        <Button x:Name="btnMS" Style="{StaticResource NormalButton}" Content="MS" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="125,150,0,0" VerticalAlignment="Top" Width="40" Height="32" FontSize="14" BorderBrush="#FF8696AA" VerticalContentAlignment="Top" Padding="1,6,1,1" Background="{x:Null}" Click="btnMS_Click" Foreground="#FF1E395B" />
        <Button x:Name="btnMP" Style="{StaticResource NormalButton}" Content="M+" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="171,150,0,0" VerticalAlignment="Top" Width="40" Height="32" FontSize="14" BorderBrush="#FF8696AA" VerticalContentAlignment="Top" Padding="1,6,1,1" Background="{x:Null}" Click="btnMP_Click" Foreground="#FF1E395B" />
        <Button x:Name="btnMR" Style="{StaticResource NormalButton}" Content="MR" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="79,150,0,0" VerticalAlignment="Top" Width="40" Height="32" BorderBrush="#FF8696AA" VerticalContentAlignment="Top" Padding="1,6,1,1" FontSize="14" Background="{x:Null}" Click="btnMR_Click" Foreground="#FF1E395B" />
        <Button x:Name="btnMM" Style="{StaticResource NormalButton}" Content="M-" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="217,150,0,0" VerticalAlignment="Top" Width="40" Height="32" FontSize="14" BorderBrush="#FF8696AA" VerticalContentAlignment="Top" Padding="1,6,1,1" Background="{x:Null}" Click="btnMM_Click" Foreground="#FF1E395B" />
        <CheckBox x:Name="chkInverted" Content="" HorizontalAlignment="Left" Margin="290,188,0,0" VerticalAlignment="Top" Style="{StaticResource OrangeSwitchStyle}" Checked="chkInverted_Checked" Unchecked="chkInverted_Unchecked" Height="40" Width="163" Foreground="#FF1E395B"/>
        <Button x:Name="btnAbout" Style="{StaticResource NormalButton}" Content="À propos" HorizontalAlignment="Left" Margin="578,420,0,0" VerticalAlignment="Top" Width="69" Height="32" FontSize="14" BorderBrush="#FF8696AA" FontStyle="Italic" Background="{x:Null}" Foreground="#FF1E395B" Click="btnAbout_Click" />
        <Button x:Name="btnCubeRt" Style="{StaticResource NormalButton}" Content="∛" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="485,150,0,0" VerticalAlignment="Top" Width="50" Height="32" FontSize="18" BorderBrush="#FF8696AA" Background="{x:Null}" Foreground="#FF1E395B" Click="btnCubeRt_Click" />
        <Button x:Name="btnNthRoot" Style="{StaticResource NormalButton}" Content="ⁿ√" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="541,150,0,0" VerticalAlignment="Top" Width="50" Height="32" FontSize="18" BorderBrush="#FF8696AA" Background="{x:Null}" Foreground="#FF1E395B" Click="btnNthRoot_Click" />
        <Button x:Name="btnPowTen" Style="{StaticResource NormalButton}" Content="10ⁿ" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="597,150,0,0" VerticalAlignment="Top" Width="50" Height="32" FontSize="18" BorderBrush="#FF8696AA" Click="btnPow_Click" Background="{x:Null}" Foreground="#FF1E395B" />
        <Button x:Name="btnMax" Style="{StaticResource NormalButton}" Content="max" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" Margin="485,327,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" HorizontalContentAlignment="Center" FontSize="16" Foreground="#FF1E395B" />
        <Button x:Name="btnMin" Style="{StaticResource NormalButton}" Content="min" HorizontalAlignment="Left" Margin="541,327,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" MouseEnter="Tooltip" MouseLeave="Toolhide"/>
        <Button x:Name="btnRand" Style="{StaticResource NormalButton}" Content="rand" HorizontalAlignment="Left" Margin="597,327,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Foreground="#FF1E395B" FontSize="16" Click="btnRand_Click" MouseEnter="Tooltip" MouseLeave="Toolhide"/>
        <Button x:Name="btnExp" Style="{StaticResource NormalButton}" Content="eⁿ" Margin="485,234,145,0" VerticalAlignment="Top" Height="40" BorderBrush="#FF8696AA" FontSize="16" Foreground="#FF1E395B" Click="btnExp_Click" Width="50" MouseEnter="Tooltip" MouseLeave="Toolhide"/>
        <Button x:Name="btnCeil" Style="{StaticResource NormalButton}" Content="ceil" HorizontalAlignment="Left" Margin="541,234,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" MouseEnter="Tooltip" MouseLeave="Toolhide"/>
        <Button x:Name="btnFloor" Style="{StaticResource NormalButton}" Content="floor" HorizontalAlignment="Left" Margin="597,234,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" MouseEnter="Tooltip" MouseLeave="Toolhide"/>
        <Button x:Name="btnFibo" Style="{StaticResource NormalButton}" Content="fibo" HorizontalAlignment="Left" Margin="485,281,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" MouseEnter="Tooltip" MouseLeave="Toolhide"/>
        <Button x:Name="btnInt" Style="{StaticResource NormalButton}" Content="int" HorizontalAlignment="Left" Margin="541,281,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" MouseEnter="Tooltip" MouseLeave="Toolhide"/>
        <Button x:Name="btnRnd" Style="{StaticResource NormalButton}" Content="rnd" HorizontalAlignment="Left" Margin="597,281,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" MouseEnter="Tooltip" MouseLeave="Toolhide"/>
        <Button x:Name="btnLog" Style="{StaticResource NormalButton}" Content="log" HorizontalAlignment="Left" Margin="485,188,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" MouseEnter="Tooltip" MouseLeave="Toolhide"/>
        <Button x:Name="btnLog10" Style="{StaticResource NormalButton}" Content="log₁₀" HorizontalAlignment="Left" Margin="541,188,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" FontSize="16" Foreground="#FF1E395B" Click="btnLog10_Click" MouseEnter="Tooltip" MouseLeave="Toolhide"/>
        <Button x:Name="btnLn" Style="{StaticResource NormalButton}" Content="ln" HorizontalAlignment="Left" Margin="597,188,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" MouseEnter="Tooltip" MouseLeave="Toolhide"/>
        <Button x:Name="btnGcd" Style="{StaticResource NormalButton}" Content="gcd" HorizontalAlignment="Left" Margin="485,373,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" HorizontalContentAlignment="Center" FontSize="16" Foreground="#FF1E395B" MouseEnter="Tooltip" MouseLeave="Toolhide"/>
        <Button x:Name="btnLcm" Style="{StaticResource NormalButton}" Content="lcm" HorizontalAlignment="Left" Margin="541,373,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" MouseEnter="Tooltip" MouseLeave="Toolhide"/>
        <Button x:Name="btnRandn" Style="{StaticResource NormalButton}" Content="randn" HorizontalAlignment="Left" Margin="597,373,0,0" VerticalAlignment="Top" Width="50" Height="40" BorderBrush="#FF8696AA" Click="btnTrigFunc_Click" FontSize="16" Foreground="#FF1E395B" MouseEnter="Tooltip" MouseLeave="Toolhide" />
        <TextBlock x:Name="lblHelp" HorizontalAlignment="Left" Margin="33,425,0,0" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="16" Text="aide"/>
        <Button x:Name="btnPi" Style="{StaticResource NormalButton}" Content="π" HorizontalAlignment="Left" Margin="79,188,0,0" VerticalAlignment="Top" Width="40" Height="40" FontSize="18" BorderBrush="#FF8696AA" VerticalContentAlignment="Top" Padding="1,6,1,1" Foreground="#FF1E395B" Click="btnPi_Click" />

        <TextBlock x:Name="lblOldOp" HorizontalAlignment="Left" Margin="39,86,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="#FF7E7E7E" Width="78" TextTrimming="CharacterEllipsis" Height="16"/>
        <CheckBox x:Name="chkDegrees" HorizontalAlignment="Left" Margin="33,3,0,0" VerticalAlignment="Top" Style="{StaticResource OrangeSwitchStyle2}" Height="32" Width="164" Foreground="#FF1E395B" FontSize="16" Checked="chkDegrees_Checked" Unchecked="chkDegrees_Checked"/>
        <Button x:Name="btnHelp" Style="{StaticResource NormalButton}" Content="Aide" HorizontalAlignment="Left" Margin="485,3,0,0" VerticalAlignment="Top" Width="60" Height="32" BorderBrush="#FF8696AA" VerticalContentAlignment="Top" Padding="1,6,1,1" Foreground="#FF1E395B" Background="{x:Null}" Click="btnHelp_Click" />
        <Border x:Name="bg" BorderThickness="1" BorderBrush="#FF8696AA" CornerRadius="2" Background="{TemplateBinding Control.Background}" Margin="550,3,33,425" Width="97" Height="32">
            <Border x:Name="bg2" BorderThickness="1" BorderBrush="White" CornerRadius="1">
                <xctk:SplitButton x:Name="btnGraph" MouseEnter="Tooltip" MouseLeave="Toolhide" Margin="-1" Content="Graphique" HorizontalAlignment="Left" VerticalAlignment="Top" Click="btnGraph_Click" BorderThickness="0" BorderBrush="White" Height="30" Width="95">
                    <xctk:SplitButton.Background>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FFF7FBFF" Offset="0"/>
                            <GradientStop Color="#FFECF4F9" Offset="1"/>
                            <GradientStop Color="#FFEDF3F7" Offset="0.5"/>
                            <GradientStop Color="#FFE7EDF5" Offset="0.5"/>
                        </LinearGradientBrush>
                    </xctk:SplitButton.Background>
                    <xctk:SplitButton.DropDownContent>
                        <StackPanel>
                            <Button x:Name="btnPolarGraph" Style="{StaticResource NormalButton}" Content="Graphique polaire" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" VerticalAlignment="Top" Width="140" Height="32" BorderBrush="#FF8696AA" VerticalContentAlignment="Top" Padding="1,6,1,1" Foreground="#FF1E395B" Background="{x:Null}" Click="btnPolarGraph_Click" />
                            <Button x:Name="btnParamGraph" Style="{StaticResource NormalButton}" Content="Graphique paramétrique" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" VerticalAlignment="Top" Width="140" Height="32" BorderBrush="#FF8696AA" VerticalContentAlignment="Top" Padding="1,6,1,1" Foreground="#FF1E395B" Background="{x:Null}" Click="btnParamGraph_Click" />
                            <Button x:Name="btnGraph3D" Style="{StaticResource NormalButton}" Content="Graphique 3D" MouseEnter="Tooltip" MouseLeave="Toolhide" HorizontalAlignment="Left" VerticalAlignment="Top" Width="140" Height="32" BorderBrush="#FF8696AA" VerticalContentAlignment="Top" Padding="1,6,1,1" Foreground="#FF1E395B" Background="{x:Null}" Click="btnGraph3D_Click" />
                        </StackPanel>
                    </xctk:SplitButton.DropDownContent>
                </xctk:SplitButton>
            </Border>
        </Border>
    </Grid>
</Window>
